package four;

public class n4 {
	public static void main(String[] args) {

		int array[] = new int[10];
		array[0] = 3;
		array[1] = 7;
		array[2] = 3;
		array[3] = 9;
		array[4] = 7;
		array[5] = 3;
		array[6] = 9;
		array[7] = 7;
		array[8] = 9;
		array[9] = 7;
		
		int a = 0;
		int b = 0;
		int c = 0;
		
		for (int j = 0; j < 10; j++) {
			if (array[j] == 3) {
				a++;								
			}
			else if (array[j] == 7) {
				b++;
			}
			else if (array[j] == 9) {
				c++;
			}
		}
		
		System.out.println("Number of 3: " + a);
		System.out.println("Number of 7: " + b);
		System.out.println("Number of 9: " + c);
	}
}
